package com.sailing.xjpb.web.base.advice.config;

import com.sailing.xjpb.common.web.ActionResult;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * 返回值包装相关配置
 *
 * @author YW
 * @see com.sailing.xjpb.web.base.advice.SailingResponseAdvisor
 */
@Data
@ConfigurationProperties(prefix = "xjpb.web.converter")
public class ResponseAdvisorConfigProperties {

    /**
     * 不需要系统统一包装返回值为{@linkplain ActionResult}的url
     */
    private String noWrapUrl = null;
    /**
     * 重写分页返回值：传统分页是从0开始，重写后从1开始；默认不重写
     */
    private boolean rewritePage = false;
}
